<template>
  <div class="block">
    <el-timeline>
      <el-timeline-item
        v-for="(item, index) of timeline"
        :key="index"
        :timestamp="item.timestamp"
        placement="top"
      >
        <el-card>
          <h4>{{ item.title }}</h4>
          <p>{{ item.content }}</p>
        </el-card>
      </el-timeline-item>
    </el-timeline>
  </div>
</template>

<script>
export default {
  data() {
    return {
      timeline: [
        {
          timestamp: "2021/4/20",
          title: "标注活动",
          content: "Syngou committed 2021/4/20 20:46",
        },
        {
          timestamp: "2021/4/21",
          title: "标注活动",
          content: "Syngou committed 2021/4/21 20:46",
        },
        {
          timestamp: "2021/4/22",
          title: "登录",
          content: "Syngou committed 2021/4/22 20:46",
        },
        {
          timestamp: "2021/4/23",
          title: "注销登录状态",
          content: "Syngou committed 2021/4/23 20:46",
        },
      ],
    };
  },
};
</script>
